import { vue } from '@/pages/trade/trade';
const enterprise = {
    namespaced: true,
    state: {
        customerStatusInfo: {
            customerId: '',//用户id
            isVerified: '', //联系人状态 0 联系人信息待提交 1提交成功
            agencyCertificationStatus: '',//机构状态 0待提交 1待审核 2审核成功 -1审核失败
            businessAuthorizationStatus: '',//业务授权状态 0待提交 1待审核 2审核成功 -1审核失败
            accountBinding: '',//账户绑定状态 0待提交 1待鉴权 2审核成功 -1审核失败(第一张卡的状态)
            newAccountBinding: ''//新绑定的卡的状态
        }
    },
    // 衍生属性
    getters: {
        getCustomerStatusInfo(state: any) {
            return state.customerStatusInfo
         }
    },
    // 更改数据
    mutations: {
        setCustomerStatusInfo(state:any,customerStatusInfo:Object) {
            state.customerStatusInfo = customerStatusInfo
        }
    },
    // 异步操作
    actions: {
        
    }
}

export default enterprise;